{% if meta is defined and meta is not none and meta.layout is defined%}
{%- extends (meta.layout+".html")|default('!layout.html') %}
{% else %}
{%- extends "!layout.html" %}
{% endif %}